<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<%--     <link href="${pageContext.request.contextPath }/phone/css/main.css" rel="stylesheet" /> --%>
    <link href="${pageContext.request.contextPath }/phone/css/bottom.css" rel="stylesheet" />
</head>
<body>
    <div>
        <!---bottom底部--->
        <div class="bottom">
            <ul class="h_ul">
                <li class="h_li1 <c:if test="${param.bottom==1 }">on</c:if>">
                    <a href="${pageContext.request.contextPath }/api/main/index"><spring:message code="head.homePage"></spring:message>${bottom }</a>
                </li>
                <li class="h_li2 <c:if test="${param.bottom==2 }">on</c:if>">
                    <a href="javascript:void(0);"><spring:message code="pattern"></spring:message></a>
                    <ul class="s_ul hide">
                        <li>
                            <a href="${pageContext.request.contextPath }/api/pattern/all/flowertypecatalog1"><spring:message code="patternDirectory1"></spring:message></a>
                        </li>
                        <li>
                            <a href="${pageContext.request.contextPath }/api/show/showFieldList"><spring:message code="showTime1"></spring:message></a>
                        </li>
                        <li>
                            <a href="${pageContext.request.contextPath }/api/theme/main"><spring:message code="subjectClassification1"></spring:message></a>
                        </li>
                    </ul>
                </li>
                <li class="h_li3 <c:if test="${param.bottom==3 }">on</c:if>">
                    <a href="javascript:void(0);"><spring:message code="fabric"></spring:message></a>
                    <ul class="s_ul hide">
                        <li>
                            <a href="${pageContext.request.contextPath }/api/fabric/catalog/all"><spring:message code="fabricCatalogue1"></spring:message></a>
                        </li>
                        <li>
                            <a href="${pageContext.request.contextPath }/api/fabric/cloth/all"><spring:message code="version1"></spring:message></a>
                        </li>
                        <li>
                            <a href="${pageContext.request.contextPath }/api/fabric/sample/all"><spring:message code="developmentSamples1"></spring:message></a>
                        </li>
                    </ul>
                </li>
                <li class="h_li4 <c:if test="${param.bottom==4 }">on</c:if>">
                    <a href="${pageContext.request.contextPath }/api/information/informationList"><spring:message code="information"></spring:message></a>
                </li>
                <li class="h_li5 <c:if test="${param.bottom==5 }">on</c:if>">
                    <a href="javascript:myCenter();"><spring:message code="phone.userCenter"></spring:message></a>
                </li>
            </ul>
        </div>
   </div>
    <%-- <script src="${pageContext.request.contextPath }/phone/js/jquery-1.8.3.min.js"></script> --%>
    <script src="${pageContext.request.contextPath }/phone/js/bottom_nav.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath }/h-ui/lib/layer/layer_mobile/layer.js"></script>
    <script type="text/javascript">
    //我的个人中心
    function myCenter(){
    	$.ajax({  
    		type : "POST",  
             url : "${pageContext.request.contextPath }/api/member/isLogin",
             success: function(data) {
            	 if(data){
            		 window.location.href="${pageContext.request.contextPath }/api/member/userCenter";
            	 }else{
            		 var href ="${pageContext.request.contextPath }/api/toPhonePage/login?redirectUrl=" + encodeURIComponent("${pageContext.request.contextPath }/api/member/shoppingCart-4/index");
            		 layer.open({
           			    content: '<spring:message code="head.notLogin"></spring:message>'
           			    ,btn: ['<spring:message code="reciveAddress.confirm"></spring:message>', '<spring:message code="reciveAddress.cancel"></spring:message>']
           			    ,yes: function(index){
           			    	location.href = href;
           			      layer.close(index);
           			    }
           			  });
            	 }
             }
    	});
    }
   
    </script>

</body>
</html>
